/*
 * TranscoderUtils.h
 *
 *  Created on: Nov 24, 2011
 *      Author: shaohong
 */

#ifndef TRANSCODERUTILS_H_
#define TRANSCODERUTILS_H_

typedef struct {
	unsigned char * waveData; //the pointer to the PCM data
	unsigned long waveDataSize; // the size of this PCM data inside waveData
} PcmDataBlock;

void freePcmDataBlock(PcmDataBlock& pcmData);

/**
 * convert 16 bit PCM to alaw byte
 */
unsigned char s16_to_alaw(int pcm_val);


#endif /* TRANSCODERUTILS_H_ */
